﻿<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:local="clr-namespace:Titler"
             xmlns:data="clr-namespace:Titler.ControlModels"
             xmlns:Properties="clr-namespace:Titler.Properties"
             x:Name="CtrlHydLine"
             x:Class="Titler.FPControls.HydLineCtrl"
             mc:Ignorable="d">             


    <UserControl.Resources>
        <Style x:Key="{x:Type Label}"
               TargetType="{x:Type Label}">
            <Setter Property="Padding"
                    Value="2" />
            <Setter Property="Margin"
                    Value="0,0,0,2" />
            <Setter Property="HorizontalContentAlignment"
                    Value="Center" />
            <Setter Property="VerticalContentAlignment"
                    Value="Center" />
            <Setter Property="Height"
                    Value="30" />
            <Setter Property="FontFamily"
                    Value="Segoe UI" />
            <Setter Property="FontSize"
                    Value="12pt" />
        </Style>
        <Style x:Key="{x:Type ComboBox}"
               TargetType="{x:Type ComboBox}">
            <Setter Property="Padding"
                    Value="2" />
            <Setter Property="Margin"
                    Value="0,0,0,2" />
            <Setter Property="Background">
                <Setter.Value>
                    <LinearGradientBrush EndPoint="0.5,1"
                                         StartPoint="0.5,0">
                        <GradientStop Color="#FFF3F3F3"
                                      Offset="0.45" />
                        <GradientStop Color="#FFE0E0E0"
                                      Offset="0.55" />
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="BorderBrush"
                    Value="#FF707070" />
            <Setter Property="Height"
                    Value="30" />
            <Setter Property="FontFamily"
                    Value="Segoe UI" />
            <Setter Property="FontSize"
                    Value="12pt" />
            <Setter Property="HorizontalContentAlignment"
                    Value="Center" />
            <Setter Property="VerticalContentAlignment"
                    Value="Center" />
        </Style>

        <data:FPControlModel x:Key="fPControlModelView" />

    </UserControl.Resources>


    <Grid DataContext="{StaticResource fPControlModelView}">
        <Grid.RowDefinitions>
            <RowDefinition Height="63*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"
                              MinWidth="54" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition MinWidth="200" />
        </Grid.ColumnDefinitions>

        <Border x:Name="B1Y"
                BorderBrush="Black"
                BorderThickness="1"
                Grid.Column="1" />

        <Border x:Name="B2Y"
                BorderBrush="Black"
                BorderThickness="1"
                Grid.Column="3" />

        <Border x:Name="B2X"
                BorderBrush="Black"
                BorderThickness="1"
                Grid.ColumnSpan="5"
                Height="36"
                VerticalAlignment="Top"
                Margin="0,67,0,0" />

        <Border x:Name="B1X"
                BorderBrush="Black"
                BorderThickness="1"
                Grid.ColumnSpan="5"
                Height="38"
                VerticalAlignment="Top"
                Margin="0,30,0,0" />

        <Border x:Name="BHX"
                BorderBrush="Black"
                BorderThickness="1"
                Grid.ColumnSpan="5"
                Margin="0,0,0,110" />

        <Border x:Name="BMain"
                BorderBrush="Black"
                BorderThickness="2"
                Grid.ColumnSpan="5"
                Height="140"
                VerticalAlignment="Top" />

        <StackPanel Grid.RowSpan="2">
            <Label x:Name="label_Copy6"
                   Margin="0"
                   Content="Line"
                   Height="30"
                   FontWeight="Bold"
                   Padding="10,2" />
            <Label x:Name="label"
                   Content="1"
                   Margin="0,5,0,0"
                   Height="30"
                   FontWeight="Bold"
                   Padding="0" />
            <Label x:Name="label_Copy"
                   Margin="0,5,0,0"
                   Content="2"
                   Height="30"
                   FontWeight="Bold"
                   Padding="0" />
            <Label x:Name="label_Copy1"
                   Margin="0,5"
                   Content="3"
                   Height="30"
                   FontWeight="Bold"
                   Padding="0" />
        </StackPanel>
        <StackPanel Grid.Column="1"
                    Grid.RowSpan="2">
            <Label x:Name="label_Copy2"
                   Margin="0"
                   Content="Count"
                   Height="30"
                   FontWeight="Bold"
                   HorizontalContentAlignment="Center"
                   VerticalContentAlignment="Center"
                   Padding="10,2"
                   VerticalAlignment="Center" />
            <ComboBox x:Name="HLCount1"
                      Text="{Binding HLCount1}"
                      ItemsSource="{Binding List_HL1Count, Source={x:Static Properties:Settings.Default}}"
                      Margin="10,5,10,0"
                      Padding="0"
                      IsEditable="True"
                      TabIndex="1"
                      LostFocus="Control_Add_Item"
                      IsSynchronizedWithCurrentItem="True" />
            <ComboBox x:Name="HLCount2"
                      Text="{Binding HLCount2}"
                      ItemsSource="{Binding List_HL2Count, Source={x:Static Properties:Settings.Default}}"
                      Margin="10,5,10,0"
                      Padding="0"
                      IsEditable="True"
                      TabIndex="5"
                      LostFocus="Control_Add_Item"
                      IsSynchronizedWithCurrentItem="True" />
            <ComboBox x:Name="HLCount3"
                      Text="{Binding HLCount3}"
                      ItemsSource="{Binding List_HL3Count, Source={x:Static Properties:Settings.Default}}"
                      Margin="10,5,10,0"
                      Padding="0"
                      IsEditable="True"
                      TabIndex="9"
                      LostFocus="Control_Add_Item"
                      IsSynchronizedWithCurrentItem="True" />
        </StackPanel>
        <StackPanel Grid.Column="2">
            <Label x:Name="label_Copy3"
                   Margin="0"
                   Content="Size (in)"
                   Height="30"
                   FontWeight="Bold"
                   HorizontalContentAlignment="Center"
                   VerticalContentAlignment="Center"
                   Padding="10,2" />
            <ComboBox x:Name="HLSize1"
                      Text="{Binding HLSize1}"
                      ItemsSource="{Binding List_HL1Size, Source={x:Static Properties:Settings.Default}}"
                      Margin="10,5,10,0"
                      Padding="0"
                      Height="30"
                      IsEditable="True"
                      TabIndex="2"
                      LostFocus="Control_Add_Item"
                      Cursor="Cross"
                      IsSynchronizedWithCurrentItem="True" />
            <ComboBox x:Name="HLSize2"
                      Text="{Binding HLSize2}"
                      ItemsSource="{Binding List_HL2Size, Source={x:Static Properties:Settings.Default}}"
                      Margin="10,5,10,0"
                      Padding="0"
                      Height="30"
                      IsEditable="True"
                      TabIndex="6"
                      LostFocus="Control_Add_Item"
                      Cursor="Cross"
                      IsSynchronizedWithCurrentItem="True" />
            <ComboBox x:Name="HLSize3"
                      Text="{Binding HLSize3}"
                      ItemsSource="{Binding List_HL3Size, Source={x:Static Properties:Settings.Default}}"
                      Margin="10,5,10,0"
                      Padding="0"
                      Height="30"
                      IsEditable="True"
                      TabIndex="10"
                      LostFocus="Control_Add_Item"
                      Cursor="Cross"
                      IsSynchronizedWithCurrentItem="True" />
        </StackPanel>
        <StackPanel Grid.Column="3">
            <Label x:Name="label_Copy4"
                   Margin="0"
                   Content="Thickness (in)"
                   Height="30"
                   FontWeight="Bold"
                   HorizontalContentAlignment="Center"
                   VerticalContentAlignment="Center"
                   Padding="10,2" />
            <ComboBox x:Name="HLThickness1"
                      Text="{Binding HLThickness1}"
                      ItemsSource="{Binding List_HL1Thickness, Source={x:Static Properties:Settings.Default}}"
                      Margin="10,5,10,0"
                      Padding="0"
                      Height="30"
                      Width="75"
                      IsEditable="True"
                      TabIndex="3"
                      LostFocus="Control_Add_Item"
                      IsSynchronizedWithCurrentItem="True" />
            <ComboBox x:Name="HLThickness2"
                      Text="{Binding HLThickness2}"
                      ItemsSource="{Binding List_HL2Thickness, Source={x:Static Properties:Settings.Default}}"
                      Margin="10,5,10,0"
                      Padding="0"
                      Height="30"
                      Width="75"
                      IsEditable="True"
                      TabIndex="7"
                      LostFocus="Control_Add_Item"
                      IsSynchronizedWithCurrentItem="True" />
            <ComboBox x:Name="HLThickness3"
                      Text="{Binding HLThickness3}"
                      ItemsSource="{Binding List_HL3Thickness, Source={x:Static Properties:Settings.Default}}"
                      Margin="10,5,10,0"
                      Padding="0"
                      Height="30"
                      Width="75"
                      IsEditable="True"
                      TabIndex="11"
                      LostFocus="Control_Add_Item"
                      IsSynchronizedWithCurrentItem="True" />
        </StackPanel>
        <StackPanel Grid.Column="4"
                    Margin="0">
            <Label x:Name="label_Copy5"
                   Margin="0"
                   Content="Material"
                   Height="30"
                   FontWeight="Bold"
                   HorizontalContentAlignment="Center"
                   VerticalContentAlignment="Center"
                   Padding="5,2" />
            <ComboBox x:Name="HLMaterial1"
                      Text="{Binding HLMaterial1}"
                      ItemsSource="{Binding List_HL1Material, Source={x:Static Properties:Settings.Default}}"
                      Margin="10,5,10,0"
                      Padding="0"
                      Height="30"
                      IsEditable="True"
                      TabIndex="4"
                      LostFocus="Control_Add_Item"
                      IsSynchronizedWithCurrentItem="True" />
            <ComboBox x:Name="HLMaterial2"
                      Text="{Binding HLMaterial2}"
                      ItemsSource="{Binding List_HL2Material, Source={x:Static Properties:Settings.Default}}"
                      Margin="10,5,10,0"
                      Padding="0"
                      Height="30"
                      IsEditable="True"
                      TabIndex="8"
                      LostFocus="Control_Add_Item"
                      IsSynchronizedWithCurrentItem="True" />
            <ComboBox x:Name="HLMaterial3"
                      Text="{Binding HLMaterial3}"
                      ItemsSource="{Binding List_HL3Material, Source={x:Static Properties:Settings.Default}}"
                      Margin="10,5,10,0"
                      Padding="0"
                      Height="30"
                      IsEditable="True"
                      TabIndex="12"
                      Loaded="Control_Add_Item"
                      IsSynchronizedWithCurrentItem="True" />
        </StackPanel>
        <Canvas Grid.Column="4"
                HorizontalAlignment="Left"
                Height="100"
                Margin="146,174,-76,-134"
                VerticalAlignment="Top"
                Width="100" />

    </Grid>
</UserControl>
